package com.mingqijia.gassafety.shared.constant;

import lombok.Getter;
import lombok.RequiredArgsConstructor;


@Getter
@RequiredArgsConstructor
public enum ShowAndSelectEnum {

    SHOW(0, "勾选", "展示"),
    NOT_SHOW(1, "不勾选", "不展示");

    private final Integer code;
    private final String name;
    private final String value;

    public static ShowAndSelectEnum getValue(Integer code) {
        for (ShowAndSelectEnum showAndSelectEnum : ShowAndSelectEnum.values()) {
            if (showAndSelectEnum.getCode().equals(code)) return showAndSelectEnum;
        }
        return null;
    }
}
